package com.pvdnc.systemdebugger.testclient;

import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;

public class MethodUtils {
    public static List<Method> getMethodByName(Class<?> clazz,String name){
        clazz.getClassLoader();
        List<Method> methodList=new ArrayList<>();
        Method[] methods=clazz.getDeclaredMethods();
        for (Method method:methods){
            if(method.getName().equals(name)){
                methodList.add(method);
            }
        }
        return methodList;
    }
}
